package com.zhu.char07

import scala.collection.mutable.ListBuffer

/**
 *
 * @version 1.0
 * @author study
 * @date 2020/9/5 17:41
 *
 */
object Scala_TestBuffer {
  def main(args: Array[String]): Unit = {

    //可变集合
    val list: ListBuffer[Int] = ListBuffer(1, 2, 3)
    list.append(4)

    list.remove(1,2)
    println(list)

  }
}
